package com.zhentao.controller;

import com.zhentao.common.dtos.ResponseResult;
import com.zhentao.dating.domain.ApUserSocial;
import com.zhentao.dating.dto.ConcernDto;
import com.zhentao.service.ApUserSocialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 关注控制器
 */
@RestController
@RequestMapping("api/wx/concern")
public class ConcernController {
    @Autowired
    private ApUserSocialService apiService;

    /**
     * 根据id获取单条信息
     * @param dto
     * @return
     */
    @PostMapping("/auth/concernOperate")
    public ResponseResult concernOperate(@RequestBody ConcernDto dto) {
        return apiService.concernOperate(dto);
    }


}
